package com.kakarote.crm9.erp.jxc.entity.base;

import com.jfinal.plugin.activerecord.IBean;
import com.jfinal.plugin.activerecord.Model;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author:Lzq
 * @Date:2021/3/15
 */
@SuppressWarnings("serial")
public abstract class BaseProductInfoEntity<M extends BaseProductInfoEntity<M>> extends Model<M> implements IBean {

    public void setId(java.lang.Integer id) {
        set("id", id);
    }
    public java.lang.Integer getId() {
        return getInt("id");
    }

    public void setName(java.lang.String name) {
        set("name", name);
    }
    public java.lang.String getName() {
        return getStr("name");
    }

    public void setBelongCategory(java.lang.Integer belongCategory) {
        set("belong_category", belongCategory);
    }
    public java.lang.Integer getBelongCategory() {
        return getInt("belong_category");
    }

    public void setCreateBy(java.lang.String createBy) {
        set("create_by", createBy);
    }
    public java.lang.String getCreateBy() {
        return getStr("create_by");
    }

    //单位
    public void setUnit(java.lang.String unit) {
        set("unit", unit);
    }
    public java.lang.String getUnit() {
        return getStr("unit");
    }
    //规格
    public void setSpecification(java.lang.String specification) {
        set("specification", specification);
    }
    public java.lang.String getSpecification() {
        return getStr("specification");
    }

    //单价
    public void setPrice(BigDecimal price) {
        set("price", price);
    }
    public java.lang.String getPrice() {
        return getStr("price");
    }

    public void setBelongCategoryName(java.lang.String belongCategoryName) {
        set("belong_categoryName", belongCategoryName);
    }
    public java.lang.String getBelongCategoryName() {
        return getStr("belong_categoryName");
    }

    public void setCoding(java.lang.String coding) {
        set("coding", coding);
    }
    public java.lang.String getCoding() {
        return getStr("coding");
    }

    public void setCreateTime(Date createTime) {
        set("create_time", createTime);
    }
    public Date getCreateTime() {
        return getDate("create_time");
    }

}
